package com.gpzx.zx.module.mine.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.databinding.ViewDataBinding
import com.gpzx.zx.R
import com.gpzx.zx.databinding.ActivityCalendarBinding
import com.gpzx.zx.module.mine.frame.presenter.CalendarPresenter
import com.gpzx.zx.module.mine.frame.view.CalendarView
import com.wkq.base.frame.activity.MvpBindingActivity

/**
 * 作者: 吴奎庆
 *
 * 时间: 2020/7/24
 *
 * 简介:
 */
class CalendarActivity :MvpBindingActivity<CalendarView, CalendarPresenter,ActivityCalendarBinding>() {

    companion object {
        fun newInstance(context: Context) {
            var intnet = Intent(context, CalendarActivity().javaClass)
            context.startActivity(intnet)
        }
    }
    override fun getLayoutId(): Int {
        return R.layout.activity_calendar
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        if(mvpView!=null)mvpView.initView()
    }

    override fun onResume() {
        super.onResume()
        if(mvpView!=null)mvpView.initView()
    }
}